package com.example.springbootserve.mapper;

import com.example.springbootserve.controller.Request.BaseRquest;
import com.example.springbootserve.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface UserMapper {
    List<User> list();

    List<User> listByCondition(BaseRquest baseRquest);

    void save(User user);

    User getById(Integer id);

    void updateById(User user);

    void deleteById(Integer id);

    User getByUsername(String username);

}
